package com.education.online.service.impl;


import com.education.common.utils.Convert;
import com.education.online.mapper.OLiveVideoListMapper;
import com.education.online.pojo.OLiveVideoList;
import com.education.online.service.OLiveVideoListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 职业达人视频资源关联表 服务层实现
 *
 * @author d
 * @date 2020-06-04 15:17:49
 */
@Service
public class OLiveVideoListServiceImpl implements OLiveVideoListService {

    @Autowired
    private OLiveVideoListMapper oLiveVideoListMapper;

    //查询职业达人视频资源关联表信息
    @Override
    public OLiveVideoList selectOLiveVideoListById(Integer id) {
        return oLiveVideoListMapper.selectOLiveVideoListById(id);
    }

    // 查询职业达人视频资源关联表列表
    @Override
    public List<OLiveVideoList> selectOLiveVideoListList(OLiveVideoList oLiveVideoList) {
        return oLiveVideoListMapper.selectOLiveVideoListList(oLiveVideoList);
    }

    // 新增职业达人视频资源关联表
    @Override
    public int insertOLiveVideoList(OLiveVideoList oLiveVideoList) {
        return oLiveVideoListMapper.insertOLiveVideoList(oLiveVideoList);
    }

    //修改职业达人视频资源关联表
    @Override
    public int updateOLiveVideoList(OLiveVideoList oLiveVideoList) {
        return oLiveVideoListMapper.updateOLiveVideoList(oLiveVideoList);
    }

    //删除职业达人视频资源关联表对象
    @Override
    public int deleteOLiveVideoListByIds(String ids) {
        return oLiveVideoListMapper.deleteOLiveVideoListByIds(Convert.toStrArray(ids));
    }
}